package com.example.human_resource_management.service;

import com.example.human_resource_management.common.ResponseData;
import com.example.human_resource_management.entry.dto.ResourceApplyDto;
import com.example.human_resource_management.entry.po.ResourceApply;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【resource_apply(资源申请表)】的数据库操作Service
* @createDate 2025-06-09 16:40:16
*/
public interface ResourceApplyService extends IService<ResourceApply> {

    List<ResourceApplyDto> selectResourceAppListByEmpId(Long empId);

    ResponseData<String> createResourceApply(Long resId);

    ResponseData<String> cancelApply(Long applyId);
    //管理员端

    List<ResourceApplyDto> selectAllResourceAppList();

    ResponseData<String> insertResourceApply(ResourceApply resourceApply);

    ResponseData<String> updateResourceApply(ResourceApply resourceApply);

    ResponseData<String> deleteResourceApply(Long applyId);
}
